#coding=utf-8
#Boa:Frame:FrameReport

import wx

def create(parent):
    return FrameReport(parent)

[wxID_FRAMEREPORT, wxID_FRAMEREPORTNB, 
] = [wx.NewId() for _init_ctrls in range(2)]

class FrameReport(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEREPORT, name=u'FrameReport',
              parent=prnt, pos=wx.Point(348, 120), size=wx.Size(1008, 649),
              style=wx.DEFAULT_FRAME_STYLE, title=u'\u7edf\u8ba1\u62a5\u8868')
        self.SetClientSize(wx.Size(1000, 615))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u6977\u4f53_GB2312'))
        self.SetBackgroundColour(wx.Colour(183, 209, 173))
        self.Center(wx.BOTH)
        self.Bind(wx.EVT_CLOSE, self.OnFrameReportClose)

        self.nb = wx.Notebook(id=wxID_FRAMEREPORTNB, name=u'nb', parent=self,
              pos=wx.Point(0, 0), size=wx.Size(924, 615), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)
        
        self.myInit()
        
    def myInit(self):
        import PanelReportDay
        import PanelReportMonth
        
        # 令父窗口随子窗口一同出现
        import kit
        kit.conShow(self)
        
        self.nb.AddPage(imageId=-1, page=PanelReportDay.PanelReportDay(self.nb), select=True,
                    text=u'日统计')
                    
        self.nb.AddPage(imageId=-1, page=PanelReportMonth.PanelReportMonth(self.nb),
                    text=u'月统计')
        
    def OnFrameReportClose(self, event):
        self.Show(False)
